/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  DbLogBody.java                                      
 *  File Contents Outline : 日志体数据对象
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package storage.dbobject;

import java.util.Hashtable;
import java.util.UUID;

public class DbLogBody {

    public static final String cl_key = "KEY";
    private String rowKey;
    public static final String cl_name = "name";
    private String name;
    public static final String cl_abbreviation = "abbreviation";
    private String abbreviation;
    public static final String cl_chinese = "chinese";
    private String chinese;
    public static final String cl_ = "chinese";
    public static String cl_hasValue = "hasValue";
    private String hasValue;
    public static final String cl_value = "value";
    private Hashtable<String, String> valueDescriptionMap;

    public DbLogBody(String rowKey, String name, String abbreviation, String chinese, String hasValue, Hashtable<String, String> valueDescriptionMap) {
        this.rowKey = rowKey;
        this.abbreviation = abbreviation;
        this.name = name;
        this.chinese = chinese;
        this.hasValue = hasValue;
        this.valueDescriptionMap = valueDescriptionMap;
    }

    public DbLogBody(String name, String abbreviation, String chinese, String hasValue, Hashtable<String, String> valueDescriptionMap) {
        this.rowKey = UUID.randomUUID().toString();
        this.abbreviation = abbreviation;
        this.name = name;
        this.chinese = chinese;
        this.hasValue = hasValue;
        this.valueDescriptionMap = valueDescriptionMap;
    }

    /**
     * @return the rowKey
     */
    public String getRowKey() {
        return rowKey;
    }

    /**
     * @param rowKey the rowKey to set
     */
    public void setRowKey(String rowKey) {
        this.rowKey = rowKey;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the abbreviation
     */
    public String getAbbreviation() {
        return abbreviation;
    }

    /**
     * @param abbreviation the abbreviation to set
     */
    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    /**
     * @return the chinese
     */
    public String getChinese() {
        return chinese;
    }

    /**
     * @param chinese the chinese to set
     */
    public void setChinese(String chinese) {
        this.chinese = chinese;
    }

    /**
     * @return the hasValue
     */
    public String getHasValue() {
        return hasValue;
    }

    /**
     * @param hasValue the hasValue to set
     */
    public void setHasValue(String hasValue) {
        this.hasValue = hasValue;
    }

    /**
     * @return the valueDescriptionMap
     */
    public Hashtable<String, String> getValueDescriptionMap() {
        return valueDescriptionMap;
    }

    /**
     * @param valueDescriptionMap the valueDescriptionMap to set
     */
    public void setValueDescriptionMap(Hashtable<String, String> valueDescriptionMap) {
        this.valueDescriptionMap = valueDescriptionMap;
    }
}
